/*
 * NCSTCPServerConnection.h
 *
 *  Created on: Apr 17, 2017
 *      Author: zhangjf
 */

#ifndef SRC_NETWORKSUBSYSTEM_NCSTCPSERVERCONNECTION_H_
#define SRC_NETWORKSUBSYSTEM_NCSTCPSERVERCONNECTION_H_

#include <Poco/Logger.h>
#include <Poco/NotificationQueue.h>
#include <Poco/Net/StreamSocket.h>
#include <Poco/Net/TCPServerConnection.h>

using namespace Poco;
using namespace Poco::Net;

namespace network
{

class NCSTCPServerConnection: public TCPServerConnection
{
public:
	NCSTCPServerConnection(NotificationQueue& nq, const StreamSocket& socket);
	virtual ~NCSTCPServerConnection();

	void run();

private:
	NotificationQueue& _nq;
};

} /* namespace network */

#endif /* SRC_NETWORKSUBSYSTEM_NCSTCPSERVERCONNECTION_H_ */
